﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RenAi.Medical.Model;
using RenAi.Medical.DAL;
using System.Data;

namespace RenAi.Medical.BLL
{
    public class ProblemBLL
    {
        ProblemDAL dal = new ProblemDAL();
        /// <summary>
        /// 显示问题列表
        /// </summary>
        /// <returns></returns>
        public DataTable GetALLProblem()
        {
            return dal.GetALLProblem();
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Pid"></param>
        /// <returns></returns>
        public int DelProblem(string Pid)
        {
            return dal.DelProblem(Pid);
        }
        /// <summary>
        /// 修改问题状态
        /// </summary>
        /// <param name="p"></param>
        /// <returns></returns>
        public int UpdProblem(Problem p)
        {
            return dal.UpdProblem(p);
        }
    }
}
